package com.wyh.domain.dto.groupOne.resource;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/*
 * 资源管理的详情中的三表信息实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ThreeMeterInfo {

    @ApiModelProperty(value = "原来的三表的id", required = true)
    @NotNull(message = "原三表id不能为空")
    private Integer threemeterId;

    @ApiModelProperty(value = "三表性质",required = true)
    @NotNull(message = "原三表性质不能为空")
    private Integer nature;

    @ApiModelProperty(value = "三表编号",required = true)
    @NotNull(message = "新三表编号不能为空")
    private String number;

    @ApiModelProperty(value = "三表名称",required = true)
    @NotNull(message = "新三表名称不能为空")
    private String name;

    @ApiModelProperty(value = "倍率",required = true)
    @NotNull(message = "原三表倍率不能为空")
    private Integer multiplier;

    @ApiModelProperty(value = "上次抄表读数",required = true)
    @NotNull(message = "原三表的上次抄表读数不能为空")
    private Double previousreading;

    @ApiModelProperty(value = "资源的路径",required = true)
    @NotNull(message = "原三表的资源路径不能为空")
    private String infoname;

    @ApiModelProperty(value = "报表周期",required = true)
    @NotNull(message = "原三表的报表周期不能为空")
    private String reportPeriod;

    @ApiModelProperty(value = "当前读数",required = true)
    @NotNull(message = "新三表的当前读数不能为空")
    private Double reading;

    @ApiModelProperty(value = "初始读数",required = true)
    @NotNull(message = "新三表的初始读数不能为空")
    private Double initial;

}
